import { IMessageHandle, IMessageStruct } from './msgHandleMg';
import { ObjectCopier } from './../objectCopier';

export class TableSettledMessageHandle implements IMessageHandle {
    get MessageName() { return "set-table-settled"; }
    get HandleName() { return "TableSettledMessageHandle"; }
    OnReceived(sender, args: IMessageStruct) {
        let tableId: any = ObjectCopier.Copy(args.body);
        this.OnMessage && this.OnMessage(tableId);
    }

    OnMessage: (tableId: string) => void;
} 